#include <stdio.h>
//#include <sys/time.h>
#include <time.h>

int main(){

/*
	struct timeval tv;

	gettimeofday(&tv, NULL);

	int i=0;
	
	while( i < 10 ){

		gettimeofday(&tv, NULL);
		printf("tv_sec:  %ld\n", tv.tv_sec);
		printf("tv_usec: %ld\n", tv.tv_usec);

		usleep(1000000);
		i++;
	}
*/

	time_t t;
	time(&t);
	printf("%s\n", ctime(&t));

	return 0;
}
